
export const formData = {
    getItemUrl: 'system/lessee/getItemById/',
    updateUrl: 'system/lessee/updateAction/',
    createUrl: 'system/lessee/createAction/',
    formKey: 'lessee',
    updateFieldList: [
        { formType: 'Input', showName: '名称', key: 'name', width: 6, required: true},
        { formType: 'Switch', showName: '是否需要邀请注册', key: 'isInviteReg', width: 6 },
        { formType: 'Input', showName: '提现手续费率', key: 'serviceChargeRate', width: 6, required: true },
        { formType: 'Input', showName: '最小提现金额', key: 'serviceCharge_min', width: 6, required: true },
        { formType: 'Input', showName: '最大提现金额', key: 'serviceCharge_max', width: 6, required: true },
        { formType: 'Input', showName: '每日提现次数', key: 'serviceChargeNum', width: 6, required: true },
        { formType: 'Input', showName: '图片存储渠道', key: 'uploadFileCHN', width: 6, roles: ['admin'] },
        { formType: 'Input', showName: '验证码渠道', key: 'validateCodeCHN', width: 6 , roles: ['admin'] },
        // { formType: 'Input', showName: '积分转余额比例', key: 'incomesToBalanceRate', width: 6, roles: ['admin'] },
        // { formType: 'Input', showName: '最小兑换积分数量', key: 'exchangeForIncomes_min', width: 6, roles: ['admin'] },
        { formType: 'Switch', showName: '是否开启释放', key: 'openFree', width: 6 },
        // { formType: 'Switch', showName: '周六周日是否开启释放', key: 'openFreeForWeekend', width: 6 },
        // { formType: 'Input', showName: '日释放池', key: 'freePoolDay', width: 6, roles: ['admin'], readonly: true },
        // { formType: 'Input', showName: '月释放池', key: 'freePoolMonth', width: 6, roles: ['admin'], readonly: true },
        // { formType: 'Input', showName: '运营补贴池', key: 'operationAwardPool', width: 6, roles: ['admin'], readonly: true },
        // { formType: 'Input', showName: '供应链奖励', key: 'supplyAwards', width: 6, roles: ['admin'], readonly: true },
        // { formType: 'Input', showName: '助残基金池', key: 'helpFundPool', width: 6, roles: ['admin'], readonly: true },
        // { formType: 'Input', showName: '毛利润', key: 'grossProfit', width: 6, roles: ['admin'], readonly: true },dayDiscountItemParams
        { formType: 'JsonStr', showName: '加盟店分红参数', key: 'franchiseeParams', width: 10, rows: 8, roles: ['admin']},
        { formType: 'JsonStr', showName: '每日秒杀商品配置', key: 'dayDiscountItemParams', width: 10, rows: 8, roles: ['admin']},
        { formType: 'Textarea', showName: '介绍', key: 'intro', width: 6 },
    ],
    detailFieldList: [
        { formType: 'Input', showName: '名称', key: 'name', width: 6 },
        { formType: 'Input', showName: '联系人', key: 'contacts', width: 6 },
        { formType: 'Input', showName: '联系电话', key: 'phone', width: 6 },
        { formType: 'Switch', showName: '是否需要邀请注册', key: 'isInviteReg', width: 6 },
        { formType: 'Input', showName: '提现手续费率', key: 'serviceChargeRate', width: 6 },
        { formType: 'Input', showName: '最小提现金额', key: 'serviceCharge_min', width: 6 },
        { formType: 'Input', showName: '最大提现金额', key: 'serviceCharge_max', width: 6 },
        { formType: 'Input', showName: '每日提现次数', key: 'serviceChargeNum', width: 6 },
        { formType: 'Input', showName: '图片存储渠道', key: 'uploadFileCHN', width: 6, roles: ['admin'] },
        { formType: 'Input', showName: '验证码渠道', key: 'validateCodeCHN', width: 6, roles: ['admin'] },
        { formType: 'Textarea', showName: '介绍', key: 'intro', width: 6 },
        {
            showName: '创建时间',
            key: 'createTime',
            formType: 'DatePicker',
            width: 6,
            type: 'datetime',
            format: 'yyyy-MM-dd',
            valueFormat: 'yyyy-MM-dd'
        }
    ],
    options: {
        status: [
            {value: '1', label: "正常"},
            {value: '2', label: "异常"}
        ],
        isShow: [
            {value: 1, label: "是"},
            {value: 0, label: "否"}
        ]
    },
    dicts: {
        status: {
            '1': "正常",
            '2': "异常"
        }
    }
}
